package com.aspose.cells;

import java.util.HashMap;
import java.util.Iterator;

class zgj extends zgi {
   zgj(int var1, int var2, int var3, zaay var4, HashMap var5) {
      super(var1, var2, var3, var4, var5);
   }

   static long[] a(HashMap var0) {
      int var1 = (Integer)var0.get("");
      if (var1 < 1) {
         return null;
      } else {
         long[] var2 = new long[var1];
         Iterator var3 = var0.keySet().iterator();

         while(var3.hasNext()) {
            Object var4 = var3.next();
            if (!"".equals(var4)) {
               int var5 = (Integer)var0.get(var4);
               if (var5 > -1) {
                  var2[var5] = (Long)var4;
               }
            }
         }

         return var2;
      }
   }

   boolean a(zyi var1) {
      long var2 = zyi.a(this.d.n, var1.a);
      if (this.e.containsKey(var2)) {
         return true;
      } else {
         this.e.put(var2, -1);
         if (this.a((zagu)var1.a(this.d, false))) {
            int var4 = (Integer)this.e.get("");
            this.e.put(var2, var4);
            this.e.put("", var4 + 1);
            return true;
         } else {
            return false;
         }
      }
   }
}
